/*
 * Copyright 2005-2013 biz-united. All rights reserved.
 * Support: http://www.biz-united.com.cn
 * License: http://www.biz-united.com.cn/?page_id=5&act=3
 */
package com.home766.job;

import net.biz.service.ProductService;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Job - 订单
 * 
 * @author BIZ Team
 * @version 3.0
 */
@Component("autoUpdateProductJob")
@Lazy(false)
public class AutoUpdateProductJob {

	@Resource(name = "productServiceImpl")
	private ProductService productServiceImpl;

	/**
	 * 释放过期订单库存
	 */
	@Scheduled(cron = "${job.product.auto_up_down}")	
	public void autoUpDown(){
		productServiceImpl.updateUpDown();
	}

}